<!DOCTYPE HTML>
<html>
<head>
    <title>（罪犯）人员信息清理</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css"/>
    <script src="/static/js/common/common.js" type="text/javascript"></script>
</head>
<body>
<div class="role-search">
    <div class="mini-toolbar" style="padding: 2px;border-top:0;border-left:0;border-right:0;">
        <table>
            <tr>
                <td class="discell" style="white-space: nowrap;text-align:right;">省份：</td>
                <td>
                    <input id="province" name="province" class="mini-combobox" textField="codeName" valueField="codeId"
                           emptyText="请选择"
                           url="/azbj/seelog/getprovince"/>
                </td>
                <td>罪犯编号：</td>
                <td>
                    <input id="priNum" name="priNum" class="mini-textbox" emptyText="罪犯编号"/>
                </td>
                <td>
                    <a class="mini-button" onclick="deleteZF()">删除</a>
                </td>
                <td>
                    <a class="mini-button" onclick="reset()">重置</a>
                </td>
            </tr>
        </table>
    </div>
</div>
<script type="text/javascript">
    mini.parse();
    var province = mini.get("province");
    var priNum = mini.get("priNum");
    //删除按钮动作
    function deleteZF() {
        $.ajax({
            url: "/azbj/ywgl/ryql",
            type: "POST",
            traditional: true,
            data: {codeId: province.value, priNum: priNum.value},
            success: function (success) {
                if (success.code == 1) {
                    mini.alert("删除成功！");
                }
            }
        });
    }

    //重置按钮动作
    function reset() {

    }
</script>
</body>
</html>